Auto merge of #2924 - luser:error-removing-file, r=alexcrichton
authorbors <bors@rust-lang.org>
Wed, 27 Jul 2016 15:47:59 +0000 (08:47 -0700)
committerGitHub <noreply@github.com>
Wed, 27 Jul 2016 15:47:59 +0000 (08:47 -0700)
Print a more useful error message when the target binary can't be removed

This happens sometimes on Windows if the target is still running, and right
now cargo prints a very cryptic message:
```
$ cargo build
   Compiling sccache v0.1.0 (file:///C:/build/sccache2)
An unknown error occurred
```

With this patch we get a much more useful error:
```
$ ../cargo/target/debug/cargo build
   Compiling sccache v0.1.0 (file:///C:/build/sccache2)
error: Could not remove file: c:\build\sccache2\target\debug\sccache.exe.

To learn more, run the command again with --verbose.
```


Trivial merge